home *** CD-ROM | disk | FTP | other *** search
/ 17 Bit Software 6: Level 6 / 17 Bit - Level 6 (1998)(Epic Marketing)[!].iso / quartz / q0402.dms / q0402.adf / BootX5.23 / Install BootX < prev    next >
Text File  |  1992-12-29  |  2KB  |  100 lines

  1.  
  2. ; $VER: Install_BootX 2.00 (21.10.92)
  3.  
  4.     failat 20
  5.  
  6.     version >NIL: exec.library 37
  7.     if warn
  8.       echo "*nYou need KickStart 2.0 or higher to use this version of BootX."
  9.       echo "BootX v4.50 was the last version that supported KickStart 1.3."
  10.       echo "*nPlease upgrade your system. Your Amiga will thank you."
  11.       skip End
  12.     endif
  13.  
  14.     if exists C:Installer
  15.       echo "*nRunning the Commodore Installer utility..."
  16.       Installer >NIL: SCRIPT Installer.script APPNAME "BootX 5.20" MINUSER novice DEFUSER expert LANGUAGE english 
  17.       skip Completed
  18.     else
  19.       echo "*nA script for the Commodore Installer utility has been provided.*n"
  20.  
  21.       echo "If you have this utility either from Commodore or from an other"
  22.       echo "software package, please copy it to your C: directory.*n"
  23.  
  24.       echo "You are now given the choice to continue to install BootX using the"
  25.       echo "defaults built into this script or to abort the installation and to"
  26.       echo "restart it after you have copied the Installer program in the C:"
  27.       echo "directory.*n"
  28.  
  29.       ask "Shall I continue to install BootX ?"
  30.       if not warn
  31.         skip Aborted
  32.       else
  33.         skip Install
  34.       endif
  35.     endif
  36.  
  37. lab Install
  38.     set Default "Work:Utilities"
  39.     echo "Please specify the drawer to install BootX in."
  40.     echo "([Return] = $Default) ? " noline
  41.  
  42.     unset Destination
  43.     set >NIL: Destination ?
  44.     if "$Destination" EQ "*$Destination"
  45.       set Destination $Default
  46.     endif
  47.  
  48.     failat 21
  49.     assign >NIL: ${Destination} exists
  50.     if fail
  51.       failat 10
  52.       if not exists $Destination
  53.         failat 21
  54.         makedir "$Destination"
  55.         if fail
  56.           echo "*NUnable to create drawer $Destination !"
  57.           failat 10
  58.           skip back Install
  59.         endif
  60.       endif
  61.  
  62.       set Temp "$Destination/"
  63.       set Destination $Temp
  64.       unset Temp
  65.     endif
  66.  
  67.     echo "Copying BootX and support files..."
  68.     copy BootX#? "$Destination" quiet clone buffer=0
  69.  
  70.     echo "Copying libraries..."
  71.     copy Libs/#? Libs: quiet clone buffer=0
  72.  
  73.     echo "*NDo you wish to install the locale files " noline
  74.     ask "(y/n) ?"
  75.     if warn
  76.       failat 10
  77.       if not exists SYS:Locale
  78.       failat 21
  79.       makedir "SYS:Locale"
  80.       if fail
  81.         echo "*NUnable to create drawer SYS:Locale !"
  82.         echo "Locale files not installed."
  83.         failat 10
  84.         skip Completed
  85.       endif      
  86.       echo "Copying locale files..."
  87.       copy Locale/#? SYS:Locale quiet clone buffer=0 all
  88.     endif
  89.  
  90. lab Completed
  91.     echo "Installation completed.*n"
  92.     skip End
  93.  
  94. lab Aborted
  95.     echo "Installation aborted!*n"
  96.  
  97. lab End
  98.     wait 5
  99.     endcli >NIL:
  100.